using UnityEngine;

namespace Gj
{
    public class MessageHelper : NodeHelper
    {
        public string message;
        public MonoBehaviour item;
        public bool invert;

        protected override BindDataType bindDataType => BindDataType.Bool;

        protected override void BindData(bool b)
        {
            if (invert ? !b : b) item.Invoke(message, 0);
        }
    }
}